package Attachment;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface AttachmentMapper {
	AttachmentItem selectById(int file_id);
	List<AttachmentItem> selectByContentId(int content_id);
	List<AttachmentItem> selectByTeamId(@Param("content_id") int content_id, @Param("team_id") int team_id);
	void deleteByContentId(int content_id);
	void deleteById(int file_id);
	int selectCountContentId(int content_id);
	int selectCountTeamId(@Param("content_id") int content_id, @Param("team_id") int team_id);
	void insert(AttachmentItem item);
}
